﻿<%@ Page Title="" Language="C#" MasterPageFile="~/layout/admin.Master" AutoEventWireup="true" CodeBehind="AdminParameter.aspx.cs" Inherits="SinhNhat.admin.AdminParameter" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentMain" runat="server">
    <asp:ScriptManager ID="scriptmanager" runat="server" />

    <asp:UpdatePanel ID="up" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:GridView ID="grParam" runat="server" DataKeyNames="ParameterID" AutoGenerateColumns="False" 
                BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" 
                CellPadding="3" GridLines="Vertical">
                <AlternatingRowStyle BackColor="#DCDCDC" />
                <Columns>
                    <asp:TemplateField ItemStyle-Width="250px" HeaderText="ID">
                        <ItemTemplate>
                            <%# Eval("ParameterID")%>
                        </ItemTemplate>

        <ItemStyle Width="250px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField ItemStyle-Width="150px" HeaderText="KeyCode">
                        <ItemTemplate>
                            <%# Eval("KeyCode")%>
                        </ItemTemplate>

        <ItemStyle Width="150px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField ItemStyle-Width="350px" HeaderText="Value">
                        <ItemTemplate>
                            <%# Eval("Value") %>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtValue" Text='<%# Eval("Value") %>' runat="server" Width="330px" />
                        </EditItemTemplate>

        <ItemStyle Width="350px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Control" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:Button ID="btnEdit" runat="server" Text="Edit" CommandName="Edit" />
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:Button ID="btnUpdate" runat="server" Text="Update" CommandName="Update" />
                            <asp:Button ID="btnCancel" runat="server" Text="Cancel" CommandName="Cancel" />
                        </EditItemTemplate>

        <ItemStyle Width="150px"></ItemStyle>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                <SortedAscendingCellStyle BackColor="#F1F1F1" />
                <SortedAscendingHeaderStyle BackColor="#0000A9" />
                <SortedDescendingCellStyle BackColor="#CAC9C9" />
                <SortedDescendingHeaderStyle BackColor="#000065" />
            </asp:GridView>

        </ContentTemplate>
    </asp:UpdatePanel>    

</asp:Content>
